package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.RoleBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface IRoleMapper extends BaseMapper<RoleBean> {

    void addCenter(@Param("roleId") Integer roleId, @Param("powerIdArray") Integer[] powerIdArray);

    void delUser(Integer id);

    void delPower(Integer id);

    Set<RoleBean> findByUser(Integer userId);
}